import Vue from 'vue'
import VueRouter from 'vue-router'
import View1Login from "@/views/View1Login.vue";
import View2Admin from "@/views/View2Admin.vue";
import View3Welcome from "@/components/View3Welcome.vue";
import View4StuInfo from "@/views/View4StuInfo.vue";

Vue.use(VueRouter)

const routes = [
    {
        path: '/',
        component: View1Login
    }, {
        path: '/admin',
        component: View2Admin,
        children: [
            {
                path: '',
                component: View3Welcome
            },
            {
                path: 'stu',
                component: View4StuInfo
            }
        ]

    },

]

const router = new VueRouter({
    routes
})

export default router
